/*
 *接口编写处...
*如果接口需要做Action的权限验证，请在Action上使用属性
*如: [ApiActionPermission("SysLanguage",Enums.ActionPermissionOptions.Search)]
 */
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.DependencyInjection;
using TradeDataAPI.System.IServices;

namespace TradeDataAPI.System.Controllers
{
    public partial class SysLanguageController
    {
        private readonly ISysLanguageService _service;//访问业务代码
        private readonly IHttpContextAccessor _httpContextAccessor;

        [ActivatorUtilitiesConstructor]
        public SysLanguageController(
            ISysLanguageService service,
            IHttpContextAccessor httpContextAccessor
        )
        : base(service)
        {
            _service = service;
            _httpContextAccessor = httpContextAccessor;
        }

        [Route("createLanguagePack"), HttpGet]
        public IActionResult CreateLanguagePack()
        {
            return Json(Service.CreateLanguagePack());
        }
    }
}
